﻿#region Header
//=============================================================================
//                          GShield (Game Shield)
//=============================================================================
//
// Original Programmer: Shawn Jackson
// Company: WaveTech Digital Technologies, Inc. (http://www.wtdt.com)
// Copyright: (c) 2006 WaveTech Digital Technologies, Inc. All Rights Reserved.
// Assembly: Model
// Code File Name: GameProcess.cs
// Code File Date: 12/8/2006
//
// Code File Info: Game Process Object Definiation
//=============================================================================
/*
 * UPDATES
 * -------
 *      ShawnJ 5/4/2007 (0.9.0.x): Refactoring for OSS.
 *			ShawnJ 8/7/2007 (0.9.5.x): Code Commenting.
 *			ShawnJ 1/22/2009 (0.10.0.x): Moved to Model project from Library project.
 */
#endregion Header

#region License
/*
  GShield - Game Shield
  Copyright (C) 2006-2007 WaveTech Digital Technologies, Inc.
                                http://www.wtdt.com

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#endregion License

#region Includes
using System;
using System.Diagnostics;
#endregion Includes

namespace WaveTech.GShield.Model
{
	/// <summary>
	/// Class Defining a Game Process object
	/// </summary>
	public class GameProcess
	{
		#region Constructor

		public GameProcess()
		{
			Modules = new GameProcessModulesCollection();
		}

		#endregion Constructor

		/// <summary>
		/// Primary Identifier for this process
		/// </summary>
		public int? Id { get; set; }

		/// <summary>
		/// Name of the process
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Timestamp of when the process was started
		/// </summary>
		public DateTime? StartTime { get; set; }

		/// <summary>
		/// Collection of Modules, assemblies, used by this process
		/// </summary>
		public GameProcessModulesCollection Modules { get; set; }

		/// <summary>
		/// Full path to the location of this process's file
		/// </summary>
		public string FullPath { get; set; }

		/// <summary>
		/// .Net base Process type for this process
		/// </summary>
		public Process Process { get; set; }

		/// <summary>
		/// Company from the process file metadata
		/// </summary>
		public string Company { get; set; }

		/// <summary>
		/// Internal name for the process from the file metadata
		/// </summary>
		public string InternalName { get; set; }

		/// <summary>
		/// Product name from the file metadata
		/// </summary>
		public string ProductName { get; set; }

		/// <summary>
		/// Windows username who currently owns the running process
		/// </summary>
		public string UserName { get; set; }
	}
}